//
//  FontAndColorMacros.h
//
//  颜色与字体宏
//

#ifndef FontAndColorMacros_h
#define FontAndColorMacros_h


//字体大小
#define Font(A)        [UIFont systemFontOfSize:A]
#define FontBold(A)    [UIFont boldSystemFontOfSize:A]
#define FontMedium(A)  [UIFont systemFontOfSize:A weight:UIFontWeightMedium]
#define FontChange(fontName,font) [UIFont fontWithName:fontName size:(font) * GETPIXEL]


#define COLOR(R,G,B)             [UIColor colorWithRed:R/255.0 green:G/255.0 blue:B/255.0 alpha:1]
#define COLOR_ALPH(R,G,B,A)      [UIColor colorWithRed:R/255.0 green:G/255.0 blue:B/255.0 alpha:A]
#define ColorHex(hex)            [UIColor colorWithHexCode:hex]
#define ColorHex_Alpha(hex,a)    [UIColor colorWithHexCode:hex alpha:a]
#define ColorRandom              COLOR_ALPH(arc4random_uniform(256), arc4random_uniform(256), arc4random_uniform(256), 1)

//色彩配置
#define ColorClear          [UIColor clearColor]
#define ColorRed            [UIColor redColor]
#define ColorOrange         [UIColor orangeColor]
#define ColorWhite          [UIColor whiteColor]
#define ColorBlack          [UIColor blackColor]
#define ColorGreen          [UIColor greenColor]
#define ColorGray           [UIColor grayColor]
#define ColorDarkGray       [UIColor darkGrayColor]
#define ColorLightGray      [UIColor lightGrayColor]
#define ColorPurple         [UIColor purpleColor]
#define ColorCyan           [UIColor cyanColor]
#define ColorBlue           [UIColor blueColor]

#define MainColor ColorHex(@"#ff1377")//COLOR(255,106,132)//ff1377
#define TextTipColor COLOR(160,162,180)

#define ThreeColor          ColorHex(@"#333333")
#define SixColor            ColorHex(@"#666666")
#define NineColor           ColorHex(@"#999999")

#define TabbarSelColor COLOR(51,51,51)
#define TabbarNorColor COLOR(101, 101, 101)

#define viewback_wite ColorHex(@"#F6F6F6")
#define subviewback_wite COLOR(44, 48, 61)
#define TextColor_wite COLOR(251,253,255)

#define TextColor_black COLOR(15,15,15)
#define viewback_black ColorHex(@"#00002b")//COLOR(2,8,14)
#define subviewback_black COLOR(44, 48, 61)

#define ChangeColor(width,height) [UIColor colorWithPatternImage:[UIImage gradientColorImageFromColors:@[ColorHex(@"#FFE28A"),ColorHex(@"#FFC152")] gradientType:GradientTypeTopToBottom imgSize:CGSizeMake(width, height)]]


#endif /* FontAndColorMacros_h */
